package com.chenyue.cm.match.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 成绩申诉
 * </p>
 *
 * @author Lbx
 * @since 2021-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdMatchScoreApply对象", description = "成绩申诉")
public class JdMatchScoreApply extends Model<JdMatchScoreApply> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "申诉图片")
    private String image;

    @ApiModelProperty(value = "申诉内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ct;

    @ApiModelProperty(value = "审核时间")
    @TableField(fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date et;

    @ApiModelProperty(value = "审核人")
    private String eu;

    @ApiModelProperty(value = "审核状态1通过2拒绝0待审核")
    private Integer checkState;

    @ApiModelProperty(value = "拒绝理由")
    private String refuseResult;

    @ApiModelProperty(value = "打分记录id")
    private Integer scoreRecordId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
